﻿using Newtonsoft.Json;
using System.Data.SqlClient;

namespace 数据上传数据库WebAPI
{
    public class SqlHelper
    {
       static  string connString = ExtUrls.SQLConfig.DataBase;

        public static int Update(string sql)
        {
            using (SqlConnection conn=new SqlConnection(connString))
            {
                conn.Open();
                using (SqlCommand cmd=new SqlCommand(sql,conn))
                {
                    return cmd.ExecuteNonQuery();
                }
            }
        }

    }
}
